<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Bitmap类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_bitmap-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Bitmap类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a927a214a479fd8c23fbada0191d04346"><td class="memItemLeft" align="right" valign="top"><a id="a927a214a479fd8c23fbada0191d04346"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Bitmap</b> (long nativeObj)</td></tr>
<tr class="separator:a927a214a479fd8c23fbada0191d04346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a027cb5f2f577533d70f163226e9a480a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a027cb5f2f577533d70f163226e9a480a">getBpp</a> ()</td></tr>
<tr class="separator:a027cb5f2f577533d70f163226e9a480a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bf2cffb343efa4bb6c855befe85c12c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a1bf2cffb343efa4bb6c855befe85c12c">destroy</a> ()</td></tr>
<tr class="separator:a1bf2cffb343efa4bb6c855befe85c12c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3fd2fb8d42dd4706eb565886772f947"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#ab3fd2fb8d42dd4706eb565886772f947">getW</a> ()</td></tr>
<tr class="separator:ab3fd2fb8d42dd4706eb565886772f947"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf6b4bbc4ce6273fb4c63a60cf70292e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#adf6b4bbc4ce6273fb4c63a60cf70292e">getH</a> ()</td></tr>
<tr class="separator:adf6b4bbc4ce6273fb4c63a60cf70292e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f367c2d0ace824acc975664c5722abc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a6f367c2d0ace824acc975664c5722abc">getLineLength</a> ()</td></tr>
<tr class="separator:a6f367c2d0ace824acc975664c5722abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a096f5fea63e3482ce16b55002aee4b35"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a096f5fea63e3482ce16b55002aee4b35">getFlags</a> ()</td></tr>
<tr class="separator:a096f5fea63e3482ce16b55002aee4b35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13d53780e577020d219ef9e94432213"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#ae13d53780e577020d219ef9e94432213">getFormat</a> ()</td></tr>
<tr class="separator:ae13d53780e577020d219ef9e94432213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12d684fdf4426f43e01d15806420a1d2"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a12d684fdf4426f43e01d15806420a1d2">getName</a> ()</td></tr>
<tr class="separator:a12d684fdf4426f43e01d15806420a1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab0cf2ea3c955a10abff8312f8ed11185"><td class="memItemLeft" align="right" valign="top"><a id="ab0cf2ea3c955a10abff8312f8ed11185"></a>
static <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:ab0cf2ea3c955a10abff8312f8ed11185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31a318b2bb97ce6a48e8651b8efcee9e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a31a318b2bb97ce6a48e8651b8efcee9e">create</a> ()</td></tr>
<tr class="separator:a31a318b2bb97ce6a48e8651b8efcee9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73060cc944a2fe4fbf45e0dadbf33466"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_bitmap.html#a73060cc944a2fe4fbf45e0dadbf33466">createEx</a> (int w, int h, int line_length, <a class="el" href="enumawtk_1_1_bitmap_format.html">BitmapFormat</a> format)</td></tr>
<tr class="separator:a73060cc944a2fe4fbf45e0dadbf33466"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a627685292a0e929b5094dfb4c9757d39"><td class="memItemLeft" align="right" valign="top"><a id="a627685292a0e929b5094dfb4c9757d39"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a627685292a0e929b5094dfb4c9757d39"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>位图。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a31a318b2bb97ce6a48e8651b8efcee9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31a318b2bb97ce6a48e8651b8efcee9e">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a> awtk.Bitmap.create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建图片对象(一般供脚本语言中使用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回bitmap对象。 </dd></dl>

</div>
</div>
<a id="a73060cc944a2fe4fbf45e0dadbf33466"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73060cc944a2fe4fbf45e0dadbf33466">&#9670;&nbsp;</a></span>createEx()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a> awtk.Bitmap.createEx </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_bitmap_format.html">BitmapFormat</a>&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建图片对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。 </td></tr>
    <tr><td class="paramname">line_length</td><td>line_length。 </td></tr>
    <tr><td class="paramname">format</td><td>格式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回bitmap对象。 </dd></dl>

</div>
</div>
<a id="a1bf2cffb343efa4bb6c855befe85c12c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bf2cffb343efa4bb6c855befe85c12c">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Bitmap.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁图片。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a027cb5f2f577533d70f163226e9a480a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a027cb5f2f577533d70f163226e9a480a">&#9670;&nbsp;</a></span>getBpp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getBpp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取图片一个像素占用的字节数。</p>
<dl class="section return"><dt>返回</dt><dd>返回一个像素占用的字节数。 </dd></dl>

</div>
</div>
<a id="a096f5fea63e3482ce16b55002aee4b35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a096f5fea63e3482ce16b55002aee4b35">&#9670;&nbsp;</a></span>getFlags()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getFlags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>标志。请参考{bitmap_flag_t}。 </p>

</div>
</div>
<a id="ae13d53780e577020d219ef9e94432213"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae13d53780e577020d219ef9e94432213">&#9670;&nbsp;</a></span>getFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>格式。请参考{bitmap_format_t}。 </p>

</div>
</div>
<a id="adf6b4bbc4ce6273fb4c63a60cf70292e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf6b4bbc4ce6273fb4c63a60cf70292e">&#9670;&nbsp;</a></span>getH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>高度。 </p>

</div>
</div>
<a id="a6f367c2d0ace824acc975664c5722abc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f367c2d0ace824acc975664c5722abc">&#9670;&nbsp;</a></span>getLineLength()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getLineLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每一行实际占用的内存(也称为stride或pitch)，一般情况下为w*bpp。 </p>

</div>
</div>
<a id="a12d684fdf4426f43e01d15806420a1d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12d684fdf4426f43e01d15806420a1d2">&#9670;&nbsp;</a></span>getName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Bitmap.getName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>名称。 </p>

</div>
</div>
<a id="ab3fd2fb8d42dd4706eb565886772f947"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3fd2fb8d42dd4706eb565886772f947">&#9670;&nbsp;</a></span>getW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Bitmap.getW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>宽度。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Bitmap.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
